home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_1.3 / Include-Strip1.3 / include.h / devices / audio.h next >
Encoding:
C/C++ Source or Header  |  1988-07-15  |  1.0 KB  |  41 lines

  1. #ifndef    DEVICES_AUDIO_H
  2. #define    DEVICES_AUDIO_H
  3. #ifndef    EXEC_IO_H
  4. #include    "exec/io.h"
  5. #endif
  6. #define    AUDIONAME    "audio.device"
  7. #define    ADHARD_CHANNELS    4
  8. #define    ADALLOC_MINPREC    -128
  9. #define    ADALLOC_MAXPREC    127
  10. #define    ADCMD_FREE    (CMD_NONSTD+0)
  11. #define    ADCMD_SETPREC    (CMD_NONSTD+1)
  12. #define    ADCMD_FINISH    (CMD_NONSTD+2)
  13. #define    ADCMD_PERVOL    (CMD_NONSTD+3)
  14. #define    ADCMD_LOCK    (CMD_NONSTD+4)
  15. #define    ADCMD_WAITCYCLE    (CMD_NONSTD+5)
  16. #define    ADCMDB_NOUNIT    5
  17. #define    ADCMDF_NOUNIT    (1<<5)
  18. #define    ADCMD_ALLOCATE    (ADCMDF_NOUNIT+0)
  19. #define    ADIOB_PERVOL    4
  20. #define    ADIOF_PERVOL    (1<<4)
  21. #define    ADIOB_SYNCCYCLE    5
  22. #define    ADIOF_SYNCCYCLE    (1<<5)
  23. #define    ADIOB_NOWAIT    6
  24. #define    ADIOF_NOWAIT    (1<<6)
  25. #define    ADIOB_WRITEMESSAGE    7
  26. #define    ADIOF_WRITEMESSAGE    (1<<7)
  27. #define    ADIOERR_NOALLOCATION    -10
  28. #define    ADIOERR_ALLOCFAILED    -11
  29. #define    ADIOERR_CHANNELSTOLEN    -12
  30. struct    IOAudio    {
  31. struct    IORequest    ioa_Request;
  32. WORD    ioa_AllocKey;
  33. UBYTE    *ioa_Data;
  34. ULONG    ioa_Length;
  35. UWORD    ioa_Period;
  36. UWORD    ioa_Volume;
  37. UWORD    ioa_Cycles;
  38. struct    Message    ioa_WriteMsg;
  39. };
  40. #endif
  41.